package com.example.jwtauthdemo.config;

import feign.codec.Encoder;
import feign.form.spring.SpringFormEncoder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


@Configuration
public class FeignMultipartConfig {

    @Bean
    public Encoder feignFormEncoder() {
        // 使用Spring的表单编码器来支持文件上传
        return new SpringFormEncoder();
    }
}
